package com.it.zhangjun.spring.aop;

import org.springframework.stereotype.Service;

/**
 * @className: BankServiceImpl
 * @description: TODO 类描述
 * @author: z00018123
 * @date: 2021/4/28
 **/
@Service
public class BankServiceImpl implements BankService {

    @Override
    public boolean transfer(String from, String to, int amount) {
        if (amount < 1) {
            throw new IllegalArgumentException("transfer amount must be a positive number");
        }
        System.out.println("[" + from + "]向[" + to + "]转账金额" + amount);
        return false;
    }
}
